const fs = require('fs');
const path = require('path');
const env = process.env[`BUILD_ENV`];
const _path = path.resolve(__dirname, './env.json');

const isExists = (
    fs.existsSync(_path)
)

//创建文件
if (!isExists) {
    fs.appendFileSync(_path)
}

fs.writeFileSync(_path, `{"BUILD_ENV":"${env}"}`);




